#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class PunishRcd : Business.BusinessBase<PunishRcd, int>
	{
		#region Fields and Properties

		private DateTime pnshStopDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime PnshStopDate
		{
			get { return pnshStopDate; }
			set
			{
				if (value != pnshStopDate)
				{
					MarkChanged("PnshStopDate");
					pnshStopDate = value;
				}
			}
		}

		private Decimal pnshLastDate = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal PnshLastDate
		{
			get { return pnshLastDate; }
			set
			{
				if (value != pnshLastDate)
				{
					MarkChanged("PnshLastDate");
					pnshLastDate = value;
				}
			}
		}

		private String pnshInCharge = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String PnshInCharge
		{
			get { return pnshInCharge; }
			set
			{
				if (value != pnshInCharge)
				{
					MarkChanged("PnshInCharge");
					pnshInCharge = value;
				}
			}
		}

		private String pnshState = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String PnshState
		{
			get { return pnshState; }
			set
			{
				if (value != pnshState)
				{
					MarkChanged("PnshState");
					pnshState = value;
				}
			}
		}

		private DateTime pnshDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime PnshDate
		{
			get { return pnshDate; }
			set
			{
				if (value != pnshDate)
				{
					MarkChanged("PnshDate");
					pnshDate = value;
				}
			}
		}

		private String pnshContent = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String PnshContent
		{
			get { return pnshContent; }
			set
			{
				if (value != pnshContent)
				{
					MarkChanged("PnshContent");
					pnshContent = value;
				}
			}
		}

		private String pnshCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String PnshCate
		{
			get { return pnshCate; }
			set
			{
				if (value != pnshCate)
				{
					MarkChanged("PnshCate");
					pnshCate = value;
				}
			}
		}

		private String stdCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StdCode
		{
			get { return stdCode; }
			set
			{
				if (value != stdCode)
				{
					MarkChanged("StdCode");
					stdCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public PunishRcd()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override PunishRcd DataSelect(int id)
		{
			return Services.DALService.PunishRcdService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.PunishRcdService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.PunishRcdService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.PunishRcdService.Delete(this);
		}

		#endregion Base overrides
	}
}
